import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/vue-admin-template/table/list',
    method: 'get',
    params
  })
}
export const login = (data) => {
  return request.post('/api/user-service/user/login', data)
}

export const getImageCode = (clientToken) => {
  return request.get(`/api/user-service/user/imageCode/${clientToken}`, {
    responseType: 'blob'
  })
}
